import React, { Component } from "react"
import eventBus from "./utils/event-bus"

export class HomeBanner extends Component {
    previousBtn() {
        eventBus.emit("handlerClickApp","HomeBanner传来的值")
    }

    nextBtn(){
        eventBus.emit("handlerClickApp","下一个按钮")
    }

    render() {
        return (
            <div>
                HomeBanner
                <button onClick={() => this.previousBtn()}>上一个</button>
                <button onClick={() => this.nextBtn()}>下一个</button>
            </div>
        )
    }
}

export default HomeBanner
